package day05.JavaCodePractice;

public class ArrayDemoPractice {
    public static void main(String[] args) {
        /*
        int[] x = new int[15];

        double[] y = new double[30];

        boolean[]z = new boolean[60];

        int [] a1 = new int[999];

        double [] b1 = new double[999];

        boolean [] c1 = new boolean[999];

        byte[] a2 = new byte[999];

        short[] b2 = new short[999];

        long[] c2 = new long[999];

        float[] d2 = new float[999];
         */

        /*
        int[] a1 = {9, 6, 9};

        int[] a2 = new int[] {9, 6, 9};

        int[] a3 = new int[] {9, 6, 9};

        double[] b1 = {9.0, 6.0, 9};
         */

        //第一遍:
        /*
        int[] a4 = new int[4];
        a4[0] = 100;
        a4[1] = 200;
        a4[2] = 300;
        a4[3] = 400;
        System.out.println(a4[3]);  //400
        System.out.println(a4[a4.length - 1]);  //400
         */

        /*
        int[] b4 = new int[5];
        b4[0] = 150;
        b4[1] = 300;
        b4[2] = 450;
        b4[3] = 600;
        b4[4] = 750;
         */

    }
}
